package enum

import "fx_swift_ifcgate_agent/api"

func GetTrasaction(code int) string {
	switch code {
	case 0:
		return "0-5万美金"
	case 1:
		return "5万美金-10万美金"
	case 2:
		return "10万-50万美金"
	case 3:
		return "50万-100万美金"
	case 4:
		return "100万-500万美金"
	case 5:
		return "500万以上美金"
	case 6:
		return "大约不超过营业额的25%"
	}
	return ""
}

func InitTransaction() ([]*api.TransactionRes, error) {
	transaction := []*api.TransactionRes{
		{Code: "0", Desc: "0-5万美金"},
		{Code: "1", Desc: "5万-10万美金"},
		{Code: "2", Desc: "10万-50万美金"},
		{Code: "3", Desc: "50万-100万美金"},
		{Code: "4", Desc: "100万-500万美金"},
		{Code: "5", Desc: "500万以上美金"},
		{Code: "6", Desc: "大约不超过营业额的25%"},
	}
	return transaction, nil
}
